<template>
  <aside class="sidebar">
    <nav class="sidebar-nav">
      <div class="nav-item active">
        <img src="/src/assets/icons/home.png" alt="发现" class="nav-icon" />
        <span class="nav-text">发现</span>
      </div>
      
      <div class="nav-item">
        <img src="/src/assets/icons/more.png" alt="发布" class="nav-icon" />
        <span class="nav-text">发布</span>
      </div>
      
      <div class="nav-item">
        <img src="/src/assets/icons/inform.png" alt="通知" class="nav-icon" />
        <span class="nav-text">通知</span>
      </div>
      
      <div class="nav-item">
        <img src="/src/assets/icons/user.png" alt="我" class="nav-icon" />
        <span class="nav-text">我</span>
      </div>
    </nav>
    
    <div class="sidebar-bottom">
      <div class="nav-item">
        <img src="/src/assets/icons/Announce.png" alt="更多" class="nav-icon" />
        <span class="nav-text">更多</span>
      </div>
    </div>
  </aside>
</template>

<script setup>
// 这里可以添加导航逻辑
</script>

<style scoped>
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  width: 80px;
  height: calc(100vh - 60px);
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.nav-item:hover {
  background: #f0f0f0;
}

.nav-item.active {
  color: #ff2442;
  background: transparent;
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-bottom: 4px;
}

.nav-text {
  font-size: 12px;
  font-weight: 500;
}

.sidebar-bottom {
  padding: 20px 0;
}
</style>

